<html>
<head><meta charset="utf-8"><title>Unresolved imports from core · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html">Unresolved imports from core</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="227099266"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227099266" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Plecra <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227099266">(Feb 20 2021 at 15:52)</a>:</h4>
<p>Should I be able to work on the standard library with rust-analyzer? It's complaining about unresolved imports from all the imports from core</p>



<a name="227108766"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227108766" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227108766">(Feb 20 2021 at 18:26)</a>:</h4>
<p>There's instructions for setting it up in the dev-guide: <a href="https://rustc-dev-guide.rust-lang.org/building/suggested.html#configuring-rust-analyzer-for-rustc">https://rustc-dev-guide.rust-lang.org/building/suggested.html#configuring-rust-analyzer-for-rustc</a></p>



<a name="227109776"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227109776" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Plecra <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227109776">(Feb 20 2021 at 18:45)</a>:</h4>
<p>Right, I've done that already and it didn't really seem to change anything</p>



<a name="227109801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227109801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Plecra <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227109801">(Feb 20 2021 at 18:45)</a>:</h4>
<p>The auto formatting is fine, but the errors are out of sync</p>



<a name="227113507"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227113507" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227113507">(Feb 20 2021 at 19:50)</a>:</h4>
<p>Hmm, I'm not sure then</p>



<a name="227113855"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227113855" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227113855">(Feb 20 2021 at 19:56)</a>:</h4>
<p>Those instructions make it work on the compiler (mostly), but not really on the standard library</p>



<a name="227113995"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227113995" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227113995">(Feb 20 2021 at 19:58)</a>:</h4>
<p>Ah, right, libcore has <code>#![cfg(not(test))]</code></p>



<a name="227114039"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227114039" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Plecra <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227114039">(Feb 20 2021 at 19:59)</a>:</h4>
<p>haha that's a pain</p>



<a name="227114092"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227114092" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Plecra <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227114092">(Feb 20 2021 at 20:00)</a>:</h4>
<p>What's the best way to get around that?</p>



<a name="227114152"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Unresolved%20imports%20from%20core/near/227114152" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Unresolved.20imports.20from.20core.html#227114152">(Feb 20 2021 at 20:01)</a>:</h4>
<p>remove it while hacking on libcore</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>